package global

import (
	"github.com/zeromicro/go-zero/core/logx"
	"net/http"
)

type SetGlobalMiddleware struct {
}

func NewSetUidToCtxMiddleware() *SetGlobalMiddleware {
	return &SetGlobalMiddleware{}
}

func (m *SetGlobalMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc {

	return func(w http.ResponseWriter, r *http.Request) {
		logx.Info("global before")
		next(w, r)
		logx.Info("global after")

	}
}
